package cn.gdsdxy.pojo;

import org.springframework.stereotype.Component;

@Component
public class Goods {
    private int id;
    private String goodsConcern;
    private String imgUrl;
    private int quantity;
    private float price;
    private String color;
    private String capacity;
    private String size;
    private String weight;
    private String introduce;
    private String type;
    private String title;

    public Goods() {
    }

    public Goods(int id, String goodsConcern, String imgUrl, int inventory, float price, String color, String capacity, String size, String weight, String introduce, String type, String title) {
        this.id = id;
        this.goodsConcern = goodsConcern;
        this.imgUrl = imgUrl;
        this.quantity = inventory;
        this.price = price;
        this.color = color;
        this.capacity = capacity;
        this.size = size;
        this.weight = weight;
        this.introduce = introduce;
        this.type = type;
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsConcern() {
        return goodsConcern;
    }

    public void setGoodsConcern(String goodsConcern) {
        this.goodsConcern = goodsConcern;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public int getInventory() {
        return quantity;
    }

    public void setInventory(int inventory) {
        this.quantity = inventory;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsConcern='" + goodsConcern + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", inventory=" + quantity +
                ", price=" + price +
                ", color='" + color + '\'' +
                ", capacity='" + capacity + '\'' +
                ", size='" + size + '\'' +
                ", weight='" + weight + '\'' +
                ", introduce='" + introduce + '\'' +
                ", type='" + type + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
